# Maintainer: Michał Adamski <michal@ert.pl>
pkgname=py3-cchardet
pkgver=2.1.7
pkgrel=4
pkgdesc="High speed universal character encoding detector"
url="https://github.com/PyYoshi/cChardet"
arch="all"
license="MPL-1.1"
makedepends="cython py3-setuptools python3-dev"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/c/cchardet/cchardet-$pkgver.tar.gz"
builddir="$srcdir/cchardet-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py check
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}
sha512sums="
43e663e30ec079b2a954862de5e8136a2e40f69e300d65eb4ce9d7ffa5d8c496dc7c0937b3306b4096cfad12a1d0617628f8f0115534ab6faf9eb39d2b3935a2  cchardet-2.1.7.tar.gz
"
